<template>
<div class="banner">
  <Nav></Nav>
  <el-carousel :interval="5000" height="460px"  arrow="always">
    <el-carousel-item v-for="item in 4" :key="item">
      <h3>{{ item }}</h3>
    </el-carousel-item>
  </el-carousel>
</div>
</template>

<script>
import Nav from './compontent/Nav'
export default {
  components: {
    Nav
  }
}

</script>

<style>
.banner {
  position: relative;
  display: flex;
}

.el-carousel {
  flex: 1;
}

.el-carousel__item h3 {
  color: #fff;
  font-size: 18px;
  opacity: 0.75;
  line-height: 460px;
  text-align: center;
  margin: 0;
}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n+1) {
  background-color: #d3dce6;
}

</style>
